/* **********************************************************
 * Copyright 2010 Dimitar Vangelovski
 *
 * This file is part of the Gens3 3D Engine.
 * 
 * The Gens3 3D Engine is free software; you can redistribute it and/or
 * modify it under the terms of version 2 of the GNU General Public
 * License as published by the Free Software Foundation.
 * 
 * The Gens3 3D Engine is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with the Gens3 3D Engine; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 * 02110-1301, USA
 * **********************************************************/


#pragma once

#include "Vertex.h"
#include "ColorRGB.h"
#include <string>

class CLightObject
{
public:

	CLightObject();
	CLightObject(const CLightObject &other);
	CLightObject(std::string strNodeName, CVertex &tmPos, bool bLightUseLight, CColorRGB &lightColor, float fLightIntens, float fLightAttnend, int nLightShadows);
	~CLightObject();

	void		SetNodeName(std::string &strName) { m_strNodeName = strName; }
	void		SetTmPos(CVertex vertex) { m_TmPos = vertex; }
	void		SetLightUseLight(bool bValue) { m_bLightUseLight = bValue; }
	void		SetLightColor(CColorRGB color) { m_LightColor = color; }
	void		SetLightIntens(float fValue) { m_fLightIntens = fValue; }
	void		SetLightAttnend(float fValue) { m_fLightAttnend = fValue; }
	void		SetLightShadows(int iValue) { m_nLightShadows = iValue; }

	std::string	GetNodeName() const { return m_strNodeName; }
	CVertex		GetTmPos() const { return m_TmPos; }
	bool		GetLightUseLight() const { return m_bLightUseLight; }
	CColorRGB	GetLightColor() const { return m_LightColor; }
	float		GetLightIntens() const { return m_fLightIntens; }
	float		GetLightAttnend() const { return m_fLightAttnend; }
	int		GetLightShadows() const { return m_nLightShadows; }

private:
	std::string	m_strNodeName;
	CVertex		m_TmPos;
	bool		m_bLightUseLight;
	CColorRGB	m_LightColor;
	float		m_fLightIntens;
	float		m_fLightAttnend;
	int		m_nLightShadows;
};

